-module(eutrancell_sup).
-include("network.hrl").
-behaviour(supervisor).
-export([init/1]).
-export([start_link/0,start_child/1,cell_update/2]).
-define(SERVER,?MODULE).

start_link() ->
	supervisor:start_link({local,?SERVER},?MODULE,[]).
init([]) ->
	Children = [
		{eutrancell,{eutrancell,start_link,[]},temporary,brutal_kill,worker,[eutrancell]}
		],
	RestartStrategy = {simple_one_for_one,0,1},
	{ok,{RestartStrategy,Children}}.
start_child(Params) ->
	supervisor:start_child(?SERVER,Params).

cell_update(CellId,Msg) ->
  gen_server:call(cell_elem_dis,{CellId,Msg}).

